package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusinessLeaveMapper;
import com.ruoyi.business.domain.BusinessLeave;
import com.ruoyi.business.service.IBusinessLeaveService;

/**
 * 请假管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-04
 */
@Service
public class BusinessLeaveServiceImpl implements IBusinessLeaveService 
{
    @Autowired
    private BusinessLeaveMapper businessLeaveMapper;

    /**
     * 查询请假管理
     * 
     * @param leaveId 请假管理主键
     * @return 请假管理
     */
    @Override
    public BusinessLeave selectBusinessLeaveByLeaveId(Long leaveId)
    {
        return businessLeaveMapper.selectBusinessLeaveByLeaveId(leaveId);
    }

    /**
     * 查询请假管理列表
     * 
     * @param businessLeave 请假管理
     * @return 请假管理
     */
    @Override
    public List<BusinessLeave> selectBusinessLeaveList(BusinessLeave businessLeave)
    {
        return businessLeaveMapper.selectBusinessLeaveList(businessLeave);
    }

    /**
     * 新增请假管理
     * 
     * @param businessLeave 请假管理
     * @return 结果
     */
    @Override
    public int insertBusinessLeave(BusinessLeave businessLeave)
    {
        return businessLeaveMapper.insertBusinessLeave(businessLeave);
    }

    /**
     * 修改请假管理
     * 
     * @param businessLeave 请假管理
     * @return 结果
     */
    @Override
    public int updateBusinessLeave(BusinessLeave businessLeave)
    {
        return businessLeaveMapper.updateBusinessLeave(businessLeave);
    }

    /**
     * 批量删除请假管理
     * 
     * @param leaveIds 需要删除的请假管理主键
     * @return 结果
     */
    @Override
    public int deleteBusinessLeaveByLeaveIds(Long[] leaveIds)
    {
        return businessLeaveMapper.deleteBusinessLeaveByLeaveIds(leaveIds);
    }

    /**
     * 删除请假管理信息
     * 
     * @param leaveId 请假管理主键
     * @return 结果
     */
    @Override
    public int deleteBusinessLeaveByLeaveId(Long leaveId)
    {
        return businessLeaveMapper.deleteBusinessLeaveByLeaveId(leaveId);
    }
}
